/**
 * @param {number[]} nums
 * @return {string}
 */

var minNumber = function (nums) {
    nums = nums.map(item => item + "")
    nums.sort((a, b) => {
        if (a + b > b + a) {
            return 0
        } else {
            return -1
        }
    })
    return nums.reduce((pre, cur) => pre + cur)
};

console.log("3" < "30")